package com.iteaj.demo.server.app;

import com.iteaj.demo.server.protocol.PlatformRequestClientDemoProtocol;
import com.iteaj.network.client.ClientRelation;
import com.iteaj.network.client.handle.IotCtrl;

/**
 * create time: 2021/5/29
 *
 * @author iteaj
 * @since 1.0
 */
@IotCtrl("client_")
public class ClientRequestDemoCtrl {

    @IotCtrl("request_demo")
    public ClientRelation request(String deviceSn, String content) {
        System.out.println(content);
        System.out.println(deviceSn);

        // 请求设备
        return new PlatformRequestClientDemoProtocol(deviceSn, content);
    }
}
